def city_find():
    city_list = {}
    with open('D:/Pycharm/火车票刷票/支持文件/city.txt', 'r', encoding='utf8') as ci:
        # print(ci.read())
        for x in [i.strip().split(':') for i in ci]:
            city_list[x[0]] = x[1]
    return city_list

while True:
    city = city_find()
    result = city[input("What's city do you need?\nPlease enter the city:")]

    print(f'The result is "{result}"')
